package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

/*
* 新房主信息
* */
@Data
@NoArgsConstructor
public class FirsthandEstateMain extends BaseDomain {

    @ApiModelProperty(value = "楼盘唯一UUID")
    private String estateUniqueUuid;

    @ApiModelProperty(value = "楼盘UUID")
    private String estateUuid;

    @ApiModelProperty(value = "楼盘名称")
    private String estateName;

    @ApiModelProperty(value = "省code")
    private String province;

    @ApiModelProperty(value = "市code")
    private String city;

    @ApiModelProperty(value = "区code")
    private String area;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市名称")
    private String cityName;

    @ApiModelProperty(value = "区名称")
    private String areaName;

    @ApiModelProperty(value = "建筑类型")
    private String buildingType;

    @ApiModelProperty(value = "物业参数")
    private String propertyType;

    @ApiModelProperty(value = "saas主推  0：普通,1：主推")
    private String hotStatus;

    @ApiModelProperty(value = "楼盘均价")
    private BigDecimal averagePrice;

    @ApiModelProperty(value = "楼盘最低价")
    private BigDecimal minPrice;

    @ApiModelProperty(value = "楼盘最高价")
    private BigDecimal maxPrice;

    @ApiModelProperty(value = "销售进度 (1：待售、2：在售期房、3：在售现房、4：认筹中、5：尾盘、6：售罄)")
    private String saleStatus;

    @ApiModelProperty(value = "主图片 同步时处理")
    private String imageUrl;

    @ApiModelProperty(value = "建筑面积范围（户型图最小和最大 比如 105-311）同步时处理")
    private String buildingAreaRange;

    @ApiModelProperty(value = "最小建筑面积 同步时处理")
    private BigDecimal minBuildingArea;

    @ApiModelProperty(value = "最大建筑面积 同步时处理")
    private BigDecimal maxBuildingArea;

    @ApiModelProperty("是否删除")
    private Boolean deleted;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;

    @ApiModelProperty("上下架规则处理标识")
    private Boolean rulesHandle;
}
